package com.fm.openinstall.d;

import java.nio.*;

public class h implements Cloneable
{
    private static final byte[] i;
    public int a;
    public int b;
    public int c;
    public int d;
    public long e;
    public long f;
    public byte[] g;
    public long h;

    static {
        i = new byte[0];
    }

    public h() {
        this.g = com.fm.openinstall.d.h.i;
    }

    public int a() {
        return this.g.length + 22;
    }

    public ByteBuffer a(final long n) {
        final ByteBuffer allocate = ByteBuffer.allocate(this.a());
        allocate.order(ByteOrder.LITTLE_ENDIAN);
        allocate.putInt(101010256);
        allocate.putShort((short)this.a);
        allocate.putShort((short)this.b);
        allocate.putShort((short)this.c);
        allocate.putShort((short)this.d);
        allocate.putInt((int)this.e);
        allocate.putInt((int)n);
        allocate.putShort((short)this.g.length);
        allocate.put(this.g);
        allocate.flip();
        return allocate;
    }

    public void a(final byte[] array) {
        byte[] i = null;
        Label_0015: {
            if (array != null) {
                i = array;
                if (array.length != 0) {
                    break Label_0015;
                }
            }
            i = com.fm.openinstall.d.h.i;
        }
        this.g = i;
    }

    public h b() {
        try {
            return (h)super.clone();
        }
        catch (CloneNotSupportedException ex) {
            throw new Error(ex);
        }
    }
}
